package cn.ztydata.teachingsystem.heaven.web.dto.test;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 学生答题dto类
 * Created by cx on 2015/3/26.
 */
public class StudentAnswerDto {

    private Long studentId;//学生编号

    @NotNull
    @Min(value = 1, message = "作业测试ID不能小于0")
    private Long testId; //作业测试ID

    @NotNull
    @Min(value = 1, message = "习题ID不能小于0")
    private Long praxisId; //习题ID

    private String text; //主观题答案

    private List<Long> options; //所选项ID集合

    @Valid
    private List<BlankForAnswerDto> blanks; //所填空信息集合

    @Valid
    private List<StudentAnswerDto> sonPraxisAnswers; //子习题学生答案
	
	private String comment; //教师主观题评论
    private Integer rightStatus; //习题回答对错状态，0：错误，1：正确，2：未答，3：主观未评判，4：主观已评判
    private Integer score; //答题得分
	private Integer value;//习题分值

    private Long parentId;//父习题编号

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }


    public Long getTestId() {
        return testId;
    }

    public void setTestId(Long testId) {
        this.testId = testId;
    }

    public Long getPraxisId() {
        return praxisId;
    }

    public void setPraxisId(Long praxisId) {
        this.praxisId = praxisId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<Long> getOptions() {
        return options;
    }

    public void setOptions(List<Long> options) {
        this.options = options;
    }

    public List<BlankForAnswerDto> getBlanks() {
        return blanks;
    }

    public void setBlanks(List<BlankForAnswerDto> blanks) {
        this.blanks = blanks;
    }

    public List<StudentAnswerDto> getSonPraxisAnswers() {
        return sonPraxisAnswers;
    }

    public void setSonPraxisAnswers(List<StudentAnswerDto> sonPraxisAnswers) {
        this.sonPraxisAnswers = sonPraxisAnswers;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
	}
	
    public Integer getRightStatus() {
        return rightStatus;
    }

    public void setRightStatus(Integer rightStatus) {
        this.rightStatus = rightStatus;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }
}
